<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkIpWhitelist
 *
 * @ORM\Table(name="tk_ip_whitelist", indexes={@ORM\Index(name="vcc_ag_index", columns={"vcc_id", "ag_id"})})
 * @ORM\Entity
 */
class TkIpWhitelist
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="ag_id", type="integer", nullable=false, options={"comment"="坐席ID，如果未设置，则不针对具体的坐席，如果设置了，则此坐席只能使用此IP才能登录"})
     */
    private $agId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="user_ip", type="string", length=15, nullable=false, options={"comment"="IP地址，只能存储单个IP"})
     */
    private $userIp = '';

    /**
     * @var string
     *
     * @ORM\Column(name="remark", type="string", length=250, nullable=false, options={"comment"="备注"})
     */
    private $remark = '';

    /**
     * @var int
     *
     * @ORM\Column(name="create_user_id", type="integer", nullable=false, options={"comment"="创建人ID"})
     */
    private $createUserId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="create_user_name", type="string", length=150, nullable=false, options={"comment"="创建人名称"})
     */
    private $createUserName = '';

    /**
     * @var int
     *
     * @ORM\Column(name="create_time", type="integer", nullable=false, options={"comment"="创建时间"})
     */
    private $createTime = '0';


}
